Add API to override platform DNS results
Categories
(Core :: Networking, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: valentin, Assigned: valentin)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
Historically our DNS resolution tests have been limited to using "localhost" or "ip6-localhost". While that's acceptable for most cases, it still limits the way we are able to write unit tests for DNS code.
Having a small service that allows us to synthesize responses coming from the platform DNS would be very helpful, and it could potentially be useful as a building block for some nice developer features (think /etc/hosts rules that only apply to the browser).
Assignee | ||
Comment 1•4 years ago
|
||
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/901b3eec4eb6 Add DNS override service r=dragana
Comment 3•4 years ago
•
|
||
Backed out changeset 901b3eec4eb6 (bug 1618130) for xpcshell failures at netwerk/test/unit/test_dns_override.js
Backout: https://hg.mozilla.org/integration/autoland/rev/862da1751d9fb10d1daa20940ffa722c888078b1
Failure push: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=901b3eec4eb6757da5558b3bd80eb8aa61eb61bc
Failure logs:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=290595356&repo=autoland&lineNumber=6786
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=290608464&repo=autoland&lineNumber=8672
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/319675493927 Add DNS override service r=dragana
Comment 5•4 years ago
|
||
Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=290665362&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/5795562c815b832b04b1655ee3d0c66c1d3790d3
[task 2020-02-26T23:24:56.694Z] 23:24:56 INFO - TEST-START | netwerk/test/unit/test_dns_override.js
[task 2020-02-26T23:24:56.837Z] 23:24:56 WARNING - TEST-UNEXPECTED-FAIL | netwerk/test/unit/test_dns_override.js | xpcshell return code: 0
[task 2020-02-26T23:24:56.837Z] 23:24:56 INFO - TEST-INFO took 152ms
[task 2020-02-26T23:24:56.838Z] 23:24:56 INFO - >>>>>>>
[task 2020-02-26T23:24:56.838Z] 23:24:56 INFO - (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2020-02-26T23:24:56.839Z] 23:24:56 INFO - (xpcshell/head.js) | test run_next_test 0 pending (2)
[task 2020-02-26T23:24:56.839Z] 23:24:56 INFO - (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2020-02-26T23:24:56.840Z] 23:24:56 INFO - running event loop
[task 2020-02-26T23:24:56.840Z] 23:24:56 INFO - netwerk/test/unit/test_dns_override.js | Starting test_bad_IPs
[task 2020-02-26T23:24:56.841Z] 23:24:56 INFO - (xpcshell/head.js) | test test_bad_IPs pending (2)
[task 2020-02-26T23:24:56.841Z] 23:24:56 INFO - TEST-PASS | netwerk/test/unit/test_dns_override.js | test_bad_IPs - [test_bad_IPs : 47] . Should throw if input is not an IP address
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/19e18bbee3c3 Add DNS override service r=dragana
Comment 7•4 years ago
|
||
bugherder |
Comment 8•4 years ago
|
||
Is the feature supposed to be available for addons?
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years ago
|
||
(In reply to Marat Tanalin from comment #8)
Is the feature supposed to be available for addons?
Not really. It is useful for tests.
May be useful for devtools, but this is still at an early stage.
Description
•